﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace Common
{
	public class ContentHelper
	{
		private ContentManager GameContent;


		public ContentHelper(ContentManager gameContent) 
		{
			GameContent = gameContent;
		}

		public void SetContent(ContentManager cont) 
		{
			GameContent = cont;
		}
		public Texture2D GetTexture (string textureName, ContentTypes contType) 
		{
			var contDir = (contType != ContentTypes.Unknown)
							? contType.ToString("G") + "\\"
							: String.Empty;

			return GameContent.Load<Texture2D>(contDir+textureName);
			
		}



	}
}
